package com.yanq.liancar.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.TextView;

import com.yanq.liancar.R;
import com.yanq.liancar.activity.base.BaseToolbarActivity;
import com.yanq.liancar.bean.QueryBalanceByUserBean;
import com.yanq.liancar.util.Utils;

import butterknife.BindView;
import butterknife.ButterKnife;

public class SmallBPriceDetailsActivity extends BaseToolbarActivity {
    @BindView(R.id.tv_price)
    TextView tvPrice;
    @BindView(R.id.tv_type)
    TextView tvType;
    @BindView(R.id.tv_time)
    TextView tvTime;
    @BindView(R.id.tv_Odd_Numbers)
    TextView tvOddNumbers;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_small_b_pricedetail);
        Utils.setStatusBar(this, true,false);
        ButterKnife.bind(this);

        mTvTitle.setText("结算明细");

        QueryBalanceByUserBean.DataBean.RecordBean bean= (QueryBalanceByUserBean.DataBean.RecordBean) getIntent().getSerializableExtra("PriceDetailedBean");

        tvPrice.setText(""+bean.getPayMoney());
        //tvType.setText(bean.getName());
        tvTime.setText(bean.getPayTime());
        tvOddNumbers.setText(bean.getOnum());
        if ("1".equals(bean.getType())){
            tvType.setText("收入");
        }else {
            tvType.setText("支出");
        }

    }
}
